package lvxu.bean;

import java.util.ArrayList;
import java.util.List;

public class MusicExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MusicExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMusicidIsNull() {
            addCriterion("musicid is null");
            return (Criteria) this;
        }

        public Criteria andMusicidIsNotNull() {
            addCriterion("musicid is not null");
            return (Criteria) this;
        }

        public Criteria andMusicidEqualTo(Integer value) {
            addCriterion("musicid =", value, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidNotEqualTo(Integer value) {
            addCriterion("musicid <>", value, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidGreaterThan(Integer value) {
            addCriterion("musicid >", value, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidGreaterThanOrEqualTo(Integer value) {
            addCriterion("musicid >=", value, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidLessThan(Integer value) {
            addCriterion("musicid <", value, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidLessThanOrEqualTo(Integer value) {
            addCriterion("musicid <=", value, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidIn(List<Integer> values) {
            addCriterion("musicid in", values, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidNotIn(List<Integer> values) {
            addCriterion("musicid not in", values, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidBetween(Integer value1, Integer value2) {
            addCriterion("musicid between", value1, value2, "musicid");
            return (Criteria) this;
        }

        public Criteria andMusicidNotBetween(Integer value1, Integer value2) {
            addCriterion("musicid not between", value1, value2, "musicid");
            return (Criteria) this;
        }

        public Criteria andSongIsNull() {
            addCriterion("song is null");
            return (Criteria) this;
        }

        public Criteria andSongIsNotNull() {
            addCriterion("song is not null");
            return (Criteria) this;
        }

        public Criteria andSongEqualTo(String value) {
            addCriterion("song =", value, "song");
            return (Criteria) this;
        }

        public Criteria andSongNotEqualTo(String value) {
            addCriterion("song <>", value, "song");
            return (Criteria) this;
        }

        public Criteria andSongGreaterThan(String value) {
            addCriterion("song >", value, "song");
            return (Criteria) this;
        }

        public Criteria andSongGreaterThanOrEqualTo(String value) {
            addCriterion("song >=", value, "song");
            return (Criteria) this;
        }

        public Criteria andSongLessThan(String value) {
            addCriterion("song <", value, "song");
            return (Criteria) this;
        }

        public Criteria andSongLessThanOrEqualTo(String value) {
            addCriterion("song <=", value, "song");
            return (Criteria) this;
        }

        public Criteria andSongLike(String value) {
            addCriterion("song like", value, "song");
            return (Criteria) this;
        }

        public Criteria andSongNotLike(String value) {
            addCriterion("song not like", value, "song");
            return (Criteria) this;
        }

        public Criteria andSongIn(List<String> values) {
            addCriterion("song in", values, "song");
            return (Criteria) this;
        }

        public Criteria andSongNotIn(List<String> values) {
            addCriterion("song not in", values, "song");
            return (Criteria) this;
        }

        public Criteria andSongBetween(String value1, String value2) {
            addCriterion("song between", value1, value2, "song");
            return (Criteria) this;
        }

        public Criteria andSongNotBetween(String value1, String value2) {
            addCriterion("song not between", value1, value2, "song");
            return (Criteria) this;
        }

        public Criteria andSingerIsNull() {
            addCriterion("singer is null");
            return (Criteria) this;
        }

        public Criteria andSingerIsNotNull() {
            addCriterion("singer is not null");
            return (Criteria) this;
        }

        public Criteria andSingerEqualTo(String value) {
            addCriterion("singer =", value, "singer");
            return (Criteria) this;
        }

        public Criteria andSingerNotEqualTo(String value) {
            addCriterion("singer <>", value, "singer");
            return (Criteria) this;
        }

        public Criteria andSingerGreaterThan(String value) {
            addCriterion("singer >", value, "singer");
            return (Criteria) this;
        }

        public Criteria andSingerGreaterThanOrEqualTo(String value) {
            addCriterion("singer >=", value, "singer");
            return (Criteria) this;
        }

        public Criteria andSingerLessThan(String value) {
            addCriterion("singer <", value, "singer");
            return (Criteria) this;
        }

        public Criteria andSingerLessThanOrEqualTo(String value) {
            addCriterion("singer <=", value, "singer");
            return (Criteria) this;
        }

        public Criteria andSingerLike(String value) {
            addCriterion("singer like", value, "singer");
            return (Criteria) this;
        }

        public Criteria andSingerNotLike(String value) {
            addCriterion("singer not like", value, "singer");
            return (Criteria) this;
        }

        public Criteria andSingerIn(List<String> values) {
            addCriterion("singer in", values, "singer");
            return (Criteria) this;
        }

        public Criteria andSingerNotIn(List<String> values) {
            addCriterion("singer not in", values, "singer");
            return (Criteria) this;
        }

        public Criteria andSingerBetween(String value1, String value2) {
            addCriterion("singer between", value1, value2, "singer");
            return (Criteria) this;
        }

        public Criteria andSingerNotBetween(String value1, String value2) {
            addCriterion("singer not between", value1, value2, "singer");
            return (Criteria) this;
        }

        public Criteria andComposerIsNull() {
            addCriterion("composer is null");
            return (Criteria) this;
        }

        public Criteria andComposerIsNotNull() {
            addCriterion("composer is not null");
            return (Criteria) this;
        }

        public Criteria andComposerEqualTo(String value) {
            addCriterion("composer =", value, "composer");
            return (Criteria) this;
        }

        public Criteria andComposerNotEqualTo(String value) {
            addCriterion("composer <>", value, "composer");
            return (Criteria) this;
        }

        public Criteria andComposerGreaterThan(String value) {
            addCriterion("composer >", value, "composer");
            return (Criteria) this;
        }

        public Criteria andComposerGreaterThanOrEqualTo(String value) {
            addCriterion("composer >=", value, "composer");
            return (Criteria) this;
        }

        public Criteria andComposerLessThan(String value) {
            addCriterion("composer <", value, "composer");
            return (Criteria) this;
        }

        public Criteria andComposerLessThanOrEqualTo(String value) {
            addCriterion("composer <=", value, "composer");
            return (Criteria) this;
        }

        public Criteria andComposerLike(String value) {
            addCriterion("composer like", value, "composer");
            return (Criteria) this;
        }

        public Criteria andComposerNotLike(String value) {
            addCriterion("composer not like", value, "composer");
            return (Criteria) this;
        }

        public Criteria andComposerIn(List<String> values) {
            addCriterion("composer in", values, "composer");
            return (Criteria) this;
        }

        public Criteria andComposerNotIn(List<String> values) {
            addCriterion("composer not in", values, "composer");
            return (Criteria) this;
        }

        public Criteria andComposerBetween(String value1, String value2) {
            addCriterion("composer between", value1, value2, "composer");
            return (Criteria) this;
        }

        public Criteria andComposerNotBetween(String value1, String value2) {
            addCriterion("composer not between", value1, value2, "composer");
            return (Criteria) this;
        }

        public Criteria andKindIsNull() {
            addCriterion("kind is null");
            return (Criteria) this;
        }

        public Criteria andKindIsNotNull() {
            addCriterion("kind is not null");
            return (Criteria) this;
        }

        public Criteria andKindEqualTo(Integer value) {
            addCriterion("kind =", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindNotEqualTo(Integer value) {
            addCriterion("kind <>", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindGreaterThan(Integer value) {
            addCriterion("kind >", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindGreaterThanOrEqualTo(Integer value) {
            addCriterion("kind >=", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindLessThan(Integer value) {
            addCriterion("kind <", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindLessThanOrEqualTo(Integer value) {
            addCriterion("kind <=", value, "kind");
            return (Criteria) this;
        }

        public Criteria andKindIn(List<Integer> values) {
            addCriterion("kind in", values, "kind");
            return (Criteria) this;
        }

        public Criteria andKindNotIn(List<Integer> values) {
            addCriterion("kind not in", values, "kind");
            return (Criteria) this;
        }

        public Criteria andKindBetween(Integer value1, Integer value2) {
            addCriterion("kind between", value1, value2, "kind");
            return (Criteria) this;
        }

        public Criteria andKindNotBetween(Integer value1, Integer value2) {
            addCriterion("kind not between", value1, value2, "kind");
            return (Criteria) this;
        }

        public Criteria andHitsIsNull() {
            addCriterion("hits is null");
            return (Criteria) this;
        }

        public Criteria andHitsIsNotNull() {
            addCriterion("hits is not null");
            return (Criteria) this;
        }

        public Criteria andHitsEqualTo(Integer value) {
            addCriterion("hits =", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsNotEqualTo(Integer value) {
            addCriterion("hits <>", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsGreaterThan(Integer value) {
            addCriterion("hits >", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsGreaterThanOrEqualTo(Integer value) {
            addCriterion("hits >=", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsLessThan(Integer value) {
            addCriterion("hits <", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsLessThanOrEqualTo(Integer value) {
            addCriterion("hits <=", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsIn(List<Integer> values) {
            addCriterion("hits in", values, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsNotIn(List<Integer> values) {
            addCriterion("hits not in", values, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsBetween(Integer value1, Integer value2) {
            addCriterion("hits between", value1, value2, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsNotBetween(Integer value1, Integer value2) {
            addCriterion("hits not between", value1, value2, "hits");
            return (Criteria) this;
        }

        public Criteria andMusicvipIsNull() {
            addCriterion("musicvip is null");
            return (Criteria) this;
        }

        public Criteria andMusicvipIsNotNull() {
            addCriterion("musicvip is not null");
            return (Criteria) this;
        }

        public Criteria andMusicvipEqualTo(Integer value) {
            addCriterion("musicvip =", value, "musicvip");
            return (Criteria) this;
        }

        public Criteria andMusicvipNotEqualTo(Integer value) {
            addCriterion("musicvip <>", value, "musicvip");
            return (Criteria) this;
        }

        public Criteria andMusicvipGreaterThan(Integer value) {
            addCriterion("musicvip >", value, "musicvip");
            return (Criteria) this;
        }

        public Criteria andMusicvipGreaterThanOrEqualTo(Integer value) {
            addCriterion("musicvip >=", value, "musicvip");
            return (Criteria) this;
        }

        public Criteria andMusicvipLessThan(Integer value) {
            addCriterion("musicvip <", value, "musicvip");
            return (Criteria) this;
        }

        public Criteria andMusicvipLessThanOrEqualTo(Integer value) {
            addCriterion("musicvip <=", value, "musicvip");
            return (Criteria) this;
        }

        public Criteria andMusicvipIn(List<Integer> values) {
            addCriterion("musicvip in", values, "musicvip");
            return (Criteria) this;
        }

        public Criteria andMusicvipNotIn(List<Integer> values) {
            addCriterion("musicvip not in", values, "musicvip");
            return (Criteria) this;
        }

        public Criteria andMusicvipBetween(Integer value1, Integer value2) {
            addCriterion("musicvip between", value1, value2, "musicvip");
            return (Criteria) this;
        }

        public Criteria andMusicvipNotBetween(Integer value1, Integer value2) {
            addCriterion("musicvip not between", value1, value2, "musicvip");
            return (Criteria) this;
        }

        public Criteria andMusiclikeIsNull() {
            addCriterion("musiclike is null");
            return (Criteria) this;
        }

        public Criteria andMusiclikeIsNotNull() {
            addCriterion("musiclike is not null");
            return (Criteria) this;
        }

        public Criteria andMusiclikeEqualTo(Integer value) {
            addCriterion("musiclike =", value, "musiclike");
            return (Criteria) this;
        }

        public Criteria andMusiclikeNotEqualTo(Integer value) {
            addCriterion("musiclike <>", value, "musiclike");
            return (Criteria) this;
        }

        public Criteria andMusiclikeGreaterThan(Integer value) {
            addCriterion("musiclike >", value, "musiclike");
            return (Criteria) this;
        }

        public Criteria andMusiclikeGreaterThanOrEqualTo(Integer value) {
            addCriterion("musiclike >=", value, "musiclike");
            return (Criteria) this;
        }

        public Criteria andMusiclikeLessThan(Integer value) {
            addCriterion("musiclike <", value, "musiclike");
            return (Criteria) this;
        }

        public Criteria andMusiclikeLessThanOrEqualTo(Integer value) {
            addCriterion("musiclike <=", value, "musiclike");
            return (Criteria) this;
        }

        public Criteria andMusiclikeIn(List<Integer> values) {
            addCriterion("musiclike in", values, "musiclike");
            return (Criteria) this;
        }

        public Criteria andMusiclikeNotIn(List<Integer> values) {
            addCriterion("musiclike not in", values, "musiclike");
            return (Criteria) this;
        }

        public Criteria andMusiclikeBetween(Integer value1, Integer value2) {
            addCriterion("musiclike between", value1, value2, "musiclike");
            return (Criteria) this;
        }

        public Criteria andMusiclikeNotBetween(Integer value1, Integer value2) {
            addCriterion("musiclike not between", value1, value2, "musiclike");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}